local ok, mason = pcall(require, 'mason')
if not ok then
  print('mason load error')
  return
end

local ok, installer = pcall(require, 'mason-lspconfig')
if not ok then
  print('mason-lspconfig load error')
  return
end

local lspconfig = require('lspconfig')

local servers = {
  'ccls',
  'clangd',
  'gopls',
  'jsonls',
  'sumneko_lua',
  'marksman',
  'pyright',
  'rust_analyzer',
  'sqls',
  'lemminx',
}

mason.setup()

installer.setup({
  ensure_installed = servers,
})
